<?php
namespace Wap\Controller;


class CommonController extends \Think\Controller{
	protected $tb_adv = 'adv';//广告表
	protected $tm_product = 'product';//产品数据表
	protected $tm_store = 'store';//产品数据表
	protected $tm_integral = 'integral';// 钱包表
	protected $tm_user = 'user';// 用户表
	protected $tm_address = 'address';// 地址表
	
	protected function isLogin() {
		if(!isset($_SESSION['boboid']) && !isset($_SESSION['user_id'])) {
			$this -> redirect('/Wap/Member/login');
		}
		return true;
	}
}